package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.ManufacturingOrder;
import com.nbsaas.boot.manufacturing.api.domain.simple.ManufacturingOrderSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 生产订单-列表对象转换器
*/

public class ManufacturingOrderSimpleConvert implements Converter<ManufacturingOrderSimple, ManufacturingOrder> {




@Override
public ManufacturingOrderSimple convert(ManufacturingOrder source) {
    ManufacturingOrderSimple result = new ManufacturingOrderSimple();

                result.setNote(source.getNote());
                result.setActualStartTime(source.getActualStartTime());
                result.setContactPerson(source.getContactPerson());
                result.setProcessRouteId(source.getProcessRouteId());
                result.setPlannedStartTime(source.getPlannedStartTime());
                result.setUrgency(source.getUrgency());
                result.setActualQuantity(source.getActualQuantity());
                result.setId(source.getId());
                result.setDeliveryDate(source.getDeliveryDate());
                result.setProductionLineId(source.getProductionLineId());
                result.setQualityRequirements(source.getQualityRequirements());
                result.setLastDate(source.getLastDate());
                result.setProductSkuId(source.getProductSkuId());
                result.setAuditOpinion(source.getAuditOpinion());
                result.setOrderNo(source.getOrderNo());
                result.setQualifiedQuantity(source.getQualifiedQuantity());
                result.setProductId(source.getProductId());
                result.setAuditor(source.getAuditor());
                result.setPlannedQuantity(source.getPlannedQuantity());
                result.setPriority(source.getPriority());
                result.setAddDate(source.getAddDate());
                result.setCustomerName(source.getCustomerName());
                result.setAuditTime(source.getAuditTime());
                result.setUnitCost(source.getUnitCost());
                result.setPlannedEndTime(source.getPlannedEndTime());
                result.setName(source.getName());
                result.setWorkshopId(source.getWorkshopId());
                result.setActualEndTime(source.getActualEndTime());
                result.setAuditStatus(source.getAuditStatus());
                result.setUnqualifiedQuantity(source.getUnqualifiedQuantity());
                result.setContactPhone(source.getContactPhone());
                result.setCustomerOrderNo(source.getCustomerOrderNo());
                result.setTotalCost(source.getTotalCost());
                result.setStatus(source.getStatus());
                result.setSpecialRequirements(source.getSpecialRequirements());


    return result;
}

}